import request from '@/utils/request'
// 对账管理
export const getReconciliationList = function(params) {
  return request({
    url: '/api/order-service/report/partnerCollect',
    method: 'GET',
    params
  })
}

// 获取合作商
export const getCooperationList = function() {
  return request({
    url: '/api/vm-service/node/nodeCollect',
    method: 'GET'
  })
}

// 获取一定时间范围之内的订单总数
export const getOrderTotal = function(params) {
  return request({
    url: '/api/order-service/report/orderCount',
    method: 'GET',
    params
  })
}

// 获取一定时间范围之内的收入
export const getIncome = function(params) {
  return request({
    url: '/api/order-service/report/orderAmount',
    method: 'GET',
    params
  })
}

// 获取一定时间范围之内的分成总数
export const getTotalBill = function(params) {
  return request({
    url: '/api/order-service/report/totalBill',
    method: 'GET',
    params
  })
}

